package com.wise.entities.content;

import com.wise.framework.daoannotations.Column;
import com.wise.framework.daoannotations.Table;
import com.wise.framework.entitiesbasic.IdTimeEntity;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Table("upload_resources")
public class Resource extends IdTimeEntity {

    /*分组ID*/
    @Column("group_id")
    private String groupId;
    public static final String _groupId = "group_id";

    /*分组ID*/
    @Column("resource_name")
    private String resourceName;
    public static final String _resourceName = "resource_name";

    /*资源访问地址*/
    @Column("path")
    private String path;
    public static final String _path = "path";

    /*资源链接的媒体文件访问地址*/
    @Column("resource_path")
    private String resourcePath;
    public static final String _resourcePath = "resource_path";

    /*第三方对象存储id*/
    @Column("oss_id")
    private String ossId;
    public static final String _ossId = "oss_id";

    /*文件扩展名，不需要包含前面的点*/
    @Column("extention_name")
    private String extentionName;
    public static final String _extentionName = "extention_name";

    /*mime_type*/
    @Column("mime_type")
    private String mimeType;
    public static final String _mimeType = "mime_type";

    @Column("image_height")
    private Integer imageHeight;
    public static final String _imageHeight = "image_height";

    @Column("image_width")
    private Integer imageWidth;
    public static final String _imageWidth = "image_width";

    @Column("resource_type")
    private Integer resourceType;
    public static final String _resourceType = "resource_type";

    @Column("origin_resource_name")
    private String originResourceName;
    public static final String _originResourceName = "origin_resource_name";

    @Column("file_size")
    private Integer fileSize;
    public static final String FILE_SIZE = "file_size";

    @Column("upload_time")
    private String uploadTime;
    public static final String UPLOAD_TIME = "upload_time";

    @Column("file_describe")
    private String describe;
    public static final String DESCRIBE = "file_describe";

    @Column("lang")
    private String lang;
    public static final String _lang = "lang";
}
